using System;
using System.Collections.Generic;
using System.Text;

using Circo.Essentials.Persistence.Filters;
using Circo.Essentials.BusinessLogic.Views.Filters;

namespace Circo.Essentials.BusinessLogic.Handlers
{
    public class Filter
    {
        public static List<EntityFilter> MapViewFiltersToEntityFilters(List<ViewFilter> filters)
        {
            List<EntityFilter> list = new List<EntityFilter>();

            foreach (ViewFilter fv in filters)
            {
                list.Add(fv.MapToEntity());
            }

            return list;
        }        


    }
}
